package cn.com.demo.common.enums;

public enum ErrorCodeEnum {
    UNAUTH("401","未授权"),
    FORBIDDEN("403","没有权限"),
    FAIL("500","失败"),
    SUCCESS("200","成功"),
    ;
    private String code;
    private String msg;

    ErrorCodeEnum(String code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
